package com.yang.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yang.model.article.pojos.ApArticleConfig;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * @author: Billyang
 * @date: 2024/9/30 23:32
 */
public interface ApArticleConfigMapper extends BaseMapper<ApArticleConfig> {

    @Update("update ap_article_config set is_down = #{enable} where article_id = #{articleId}")
    int updateEnableByArticleId(@Param("articleId") Long articleId, @Param("enable") Boolean enable);
}
